<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:69:"E:\wamp\www\tp5_job\public/../application/index\view\index\index.html";i:1518001186;}*/ ?>
﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>兼职乐-快乐生活，快乐工作，尽在兼职乐</title>
<link type="text/css" rel="stylesheet" href="/static/index/css/common.css" />
<link type="text/css" rel="stylesheet" href="/static/index/css/home.css" />
    <script src="/static/index/js/jquery.js"></script>
	<script src="/static/index/js/lepin_ajax.js"></script>
	<script src="/static/index/js/lepin.js"></script>
    <script src="/static/index/js/zepto.min.js"></script>
    <script src="/static/index/js/frozen.js"></script>
    
</head>
<body>
<!--头部-->
<div class="head">
    <div class="wrap">
            <span class="fr">
                <a href="<?php echo url('index/login/index'); ?>"><?php echo empty(\think\Session::get('tel'))?'登录':'欢迎, '.\think\Session::get('tel'); ?></a>丨
                <a class="mr15" href="<?php echo url('index/login/showreg'); ?>">注册</a>
                <a href="index.php?act=about"   >关于我们</a>
            </span>
        <div class="mr20 city">
            <i id='prov' prov="<?php echo $cityid; ?>"><?php echo $citytitle; ?></i>
            <span>[切换城市]</span>
            <em></em>
            <div class="choice">
                <?php if(is_array($city) || $city instanceof \think\Collection || $city instanceof \think\Paginator): $i = 0; $__LIST__ = $city;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                <a href="<?php echo url('index/index/switchcity',['id'=>$v['id']]); ?>"><?php echo $v['name']; ?></a>
                <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
        </div>
     </div>
</div>



<!--导航-->
    <div class="nav">
        <div class="wrap clearfix">
            <a class="fl" href="<?php echo url('index/index/index'); ?>"><img src="/static/index/picture/logo.jpg"></a>
            <div class="navcont fl" style="width:400px;">
                                <a  href="index.php?act=job_list">全部兼职</a>
                <!--<a  href="index.php?act=seller">企业入口</a>-->
                <a href="<?php echo url('index/part/index'); ?>">企业入口</a>
                            </div>
                        <a class="fabu fl" href="">发布职位信息</a>
                        <div class="search fr">
                <form method="get" name="frm" action="index.php?act=job_list">
                    <input class="txt fl" style="width:170px;" type="text" value="" name="keyword" id="keyword" placeholder="请输入搜索内容">
                    <input class="btn fl" type="button" value="搜索" onclick="document.forms['frm'].submit()">
                </form>

            </div>
        </div>
    </div>




<div class="wrap sel">
    <div class="fenlei clearfix">
        <div class="title fl fontS16">兼职属性</div>
        <div class="type fl " id='property'>
            <!-- class="cur"  -->
            <?php if(is_array($property) || $property instanceof \think\Collection || $property instanceof \think\Paginator): $i = 0; $__LIST__ = $property;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
            <a href="javascript:void(0);" cateid='<?php echo $v['id']; ?>' catename='<?php echo $v['name']; ?>' class='<?php echo in_array($v['id'],$isselect)==true?'cur':''; ?>' ><?php echo $v['name']; ?></a>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>

    <div class="fenlei clearfix form">
        <div class="title fl fontS16">兼职类型</div>
        <div class="type fl">
            <?php if(is_array($type) || $type instanceof \think\Collection || $type instanceof \think\Paginator): $i = 0; $__LIST__ = $type;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
            <a href="javascript:void(0);" cateid='<?php echo $v['id']; ?>' catename='<?php echo $v['name']; ?>' class='<?php echo in_array($v['id'],$isselect)==true?'cur':''; ?>'><?php echo $v['name']; ?></a>
            <?php endforeach; endif; else: echo "" ;endif; ?>
          </div>
    </div>

    <div class="fenlei clearfix ">
        <div class="title fl fontS16">区域选择</div>
        <div class="type fl regional">
            <?php if(is_array($area) || $area instanceof \think\Collection || $area instanceof \think\Paginator): $i = 0; $__LIST__ = $area;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
            <a href="javascript:void(0);" cateid='<?php echo $v['id']; ?>' catename='<?php echo $v['name']; ?>'   class='<?php echo in_array($v['id'],$isselect)==true?'cur':''; ?>'><?php echo $v['name']; ?></a>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
    </div>



    <script>

  


        $(function(){
            var ids = [];
            var str = '';
            var a= $(".sel a").hasClass('cur');
            if(!a)
            {  
                // console.log(11);

             $(".sel a[catename='全部']").addClass('cur') 
                .siblings().removeClass('cur')
                .end(); 

            }
            $('.sel a').click(function(){    
                    str = '';
                  $(this).addClass('cur') 
                        .siblings().removeClass('cur')
                        .end();  
                    //获取被选中的标签
                $('.sel a[class="cur"]').each(function(key,value){
                     // ids[key] = $(this).attr('cateid');
                     str += $(this).attr('cateid')+'B';
                });

                $.ajax({
                    url:"/index/index/cateFind",
                    type:'post',
                    data:{"ids":str},
                    dataType:"json",
                    success:function(rs){
                        //5,14,25

                        var all = rs;
                        var province = $('#prov').attr('prov');
                        all = all+'A'+province+'A'+str;;
                        // alert(all);
                        // window.location.href = '<?php echo url("index/index/findPosition",["positionid"=>"all"]); ?>';
                        window.location.href = '<?php echo url("index/index/findPosition"); ?>?all='+ all;
                        // console.log(rs);
                        // $('<a class="list" href="?act=job_info&jobid=30001"></a>').appendTo($('#main'));
                        // $('<div class="title fontS16 clearfix"></div>').appendTo($(''));
                    }
                });    
            })   
        })
        
    </script>



    <div class="menu01">
        <a class="fr" href="index.php?act=job_list">更多兼职<i class="ml5 fr"></i></a>
        <span><em class="mr5"></em>最新兼职</span>
    </div>
            

        <?php if(is_array($position) || $position instanceof \think\Collection || $position instanceof \think\Paginator): $k = 0; $__LIST__ = $position;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$value): $mod = ($k % 2 );++$k;?>
             <a class="list" href="<?php echo url('index/index/message'); ?>">
                <div class="title fontS16 clearfix">
                    <span class="fontC01 fl">[<?php echo $value['position_name']; ?>]</span>
                    <span class="fl"><?php echo $value['position_name']; ?></span>
                    <i class="yan"></i>
                    <i class="guan"></i>
                    <i class="bao"></i> 
                    <span class="fontC02 fr"><?php echo $value['position_payway']; ?></span> 
                </div>
                <div class="cont clearfix">
                    <ul class="fl">
                        <li>工作时间：<?php echo date('Y-m-d',$value['position_start']); ?>至<?php echo date('Y-m-d',$value['position_end']); ?></li>   
                        <li>工作需求：<?php echo $value['position_require']; ?></li>  
                        <li>工作地点：<?php echo $value['position_place']; ?></li> 
                        <li>招聘人数：<?php echo $value['position_num']; ?></li>
                        <li>发布平台：<?php echo $companyname[$k-1]; ?></li> 
                        <li>发布时间：<?php echo date('Y-m-d',$value['position_publish']); ?></li>                                                                                                                                      
                    </ul>
                    <div class="btn  bm  fr mt30">
                         报名中
                    </div>
                </div>
            </a>
        <?php endforeach; endif; else: echo "$empty" ;endif; ?>

</div>



<div class="foot mt30">
	<div class="wrap center">©2015 河北乐聘人力资源服务有限公司 丨 兼职乐，专属兼职神器 丨 冀ICP备15013734</div>
</div>
<div class="gotop"></div>
<script type="text/javascript" language="javascript" src="/static/index/js/jquery-1.7.2-min.js"></script>
<script type="text/javascript" language="javascript" src="/static/index/js/common.js"></script>
<script type="text/javascript">
	var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");document.write(unescape("%3Cspan id='cnzz_stat_icon_1268697534'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1268697534%26show%3Dpic' type='text/javascript'%3E%3C/script%3E"));
</script>

</body>
</html>

